<form class="layui-form layui-col-md11" lay-filter="tpl_goods{$goods_sign}" action="{:url('Goods/saveData')}">
	<input type="hidden" name="goods_sign" class="layui-input" />
	<input type="hidden" name="goods_id" class="layui-input" />
	<input type="hidden" name="callet_juncai" value="1" />
	<div class="layui-form-item">
		<label class="layui-form-label">产品分类</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.category_name}
		</div>
		<div class="layui-input-inline" style="display: none;">
			<select name="category_sign1" lay-verify="required" id="category_level1_{$goods_sign}" lay-filter="category_level1_{$goods_sign}" lay-search>
			</select>
		</div>
		<div class="layui-input-inline" style="display: none;">
			<select name="category_sign2" lay-verify="required" id="category_level2_{$goods_sign}" lay-filter="category_level2_{$goods_sign}" lay-search>
			</select>
		</div>
		<div class="layui-input-inline" style="display: none;">
			<select name="category_sign3" lay-verify="required" id="category_level3_{$goods_sign}" lay-filter="category_level3_{$goods_sign}" lay-search>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">品牌</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.jun_brand_name}
		</div>
		<div class="layui-input-inline" style="display: none;">
			<select name="brand_sign" id="goods_brand_{$goods_sign}" lay-verify="required" lay-filter="goods_brand_{$goods_sign}" lay-search>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品名称</label>
		<div class="layui-input-block layui-col-md8 margin-left0" style="line-height: 38px;">
			{$goods_data.goods_name}
		</div>
		<div class="layui-input-block layui-col-md8 margin-left0" style="display: none;">
			<input type="text" name="goods_name" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">型号</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.goods_model}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">军网编号</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.jun_id}
		</div>
		<div class="layui-input-inline" style="display: none;">
			<input type="text" name="goods_sku" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品编号</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.goods_sku}
		</div>
		<div class="layui-input-inline" style="display: none;">
			<input type="text" name="goods_sku" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
			<label class="layui-form-label">报价</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_spu{$goods_sign}">
				</blockquote>
			</div>
		</div>
	<div class="layui-form-item">
			<label class="layui-form-label">商品属性</label>
			<div class="layui-input-block">
				
				<blockquote class="layui-elem-quote layui-quote-nm">
					{volist name="goods_data['goods_api_option']['param']" id="list"}
					<div>{$list.paramname}：{$list.paramvalue??''}</div>
					{/volist}
				</blockquote>
			</div>
			<div class="layui-input-block" style="display: none;">
				<blockquote class="layui-elem-quote layui-quote-nm" id="goods_attr{$goods_sign}">
					请先选择分类
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">详细信息</label>
			<div class="layui-input-block">
				<textarea name="goods_content" id="goods_content{$goods_sign}"></textarea>
			</div>
		</div>
</form>	
<script src="/static/ueditor/ueditor.all.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/goods/drag.js" type="text/javascript" charset="utf-8"></script>
<script>
	// 赋值
	var goods_sign = "{$goods_sign}";
	var goods_form_value = {$data};
	var category_select_uri = "{:url('Category/ajaxCategory')}";
	var brand_select_uri = "{:url('Brand/ajaxList')}";
	var attr_select_uri = "{:url('Attr/ajaxList')}";
	var sale_uri = "{:url('Sale/formTpl',array('goods_sign'=>$goods_sign))}";
	var um = UE.getEditor('goods_content{$goods_sign}');
	var chk_goods_model_uri = "{:url('Goods/chkModel')}";
	var goods_form_url = "{:url('goods/tplForm')}";
	var site_data_url = "{:url('goods/siteData')}";
	var push_neimeng_url = "{:url('goods/pushNeimengInfo')}";
	var push_qixin_url = "{:url('goods/pushQixinInfo')}";
	var push_zongyang_url = "{:url('@zyapi/api/product')}";
	var push_beijing_url = "{:url('@bjapi/api/product')}";
	var push_changshao_url = "{:url('@api/changsha/addGoods')}";
	um.ready(function(){
		if(goods_form_value.goods_content != undefined){
			um.setContent(goods_form_value.goods_content);
		}
	})
</script>

<script src="/static/js/goods/goods_jun_tpl.js" type="text/javascript" charset="utf-8"></script>
